          <!-- START OF MAINCOL -->
          <div class="MainCol AddEbookPage">
          	  <h1>群发邮件</h1>
              <span class="NormalFont SmallFont">
                  <?= CHtml::image(Yii::app()->baseUrl.'/images/home_icon.gif', '主页'); ?> > 用户管理 > 群发邮件 
               </span><br /><br />
              <div class="Titlebox box"><!-- DON'T DELETE --></div>
              <?php if($bulkMail->hasErrors()):  echo CHtml::errorSummary($bulkMail); endif; ?>
              <?php if(Yii::app()->user->hasState('sendingMailsCount')) : ?>
              <div class="SaveBox Smallbox">
                <span class="Error"> 一个群发邮件的进程正在进行中，不能同时进行两个或以上的群发邮件操作。</span>
              </div>
              <?php endif ?>
              <?= CHtml::form('', 'POST', array('name' => 'form1')); ?>
              <div class="Smallbox"><label>标题<span class="Red">*</span></label>
                  <?= CHtml::activeTextField($bulkMail, 'title', array('class' => 'TxtInput')); ?>
              </div>
              
              <div class="Smallbox"><label>目标用户<span class="Red">*</span></label>
              <?= CHtml::activeDropDownList($bulkMail, 'category', BulkmailForm::getObjectOptions(), array('class' => 'Select', 'empty' => '-- 请选择目标用户 --')); ?>
              </div>
              
              <div class="Smallbox"><label>内容<span class="Red">*</span></label>
              
              <?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
				"model"=>$bulkMail,				# Data-Model
				"attribute"=>'content',			# Attribute in the Data-Model
				"height"=>'700px',
				"width"=>'100%',
				"toolbarSet"=>'Default', 			# EXISTING(!) Toolbar (see: fckeditor.js)
				"fckeditor"=>Yii::app()->basePath."/../assets/fckeditor/fckeditor.php",
												# Path to fckeditor.php
				"fckBasePath"=>Yii::app()->baseUrl."/assets/fckeditor/",
												# Realtive Path to the Editor (from Web-Root)
				"config" => array("EditorAreaCSS"=>Yii::app()->baseUrl.'/css/common.css',),
												# Additional Parameter (Can't configure a Toolbar dynamicly)
			) ); ?>
              </div>
              
              <div class="Midbox Red SmallFont">带 * 为必填项</div>
  

              <div class="Smallbox btnBox"><label>&nbsp;</label>
              	  <?= CHtml::submitButton('发送', array('title' => 'save', 'name' => 'send')); ?>  或
              	  <?= CHtml::submitButton('预览', array('title' => 'preview', 'name' => 'preview')); ?>
                  <br class="clear" />
              </div>
              <?= CHtml::endForm(); ?>
              
              
          </div>
          <!-- END OF MAINCOL -->